extends "../cTDP_4_1/cTDP_4_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()
	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.5
	addCdSkill("dly",7)
	addSkillTxt("回春术：为全体友方添加持续治疗，每秒回复（100 + 自身血量上限0.5%）点生命值，持续3秒[cd：7秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	var chas = getAllChas(2)
	if id == "dly":
		cst("回春术","000000",position)
		if !chas.size():return
		for i in chas:
			i.addBuff(BF.new(1,self))

class BF:
	extends Buff
	var cha
	var val
	func _init(lv = 1,cha = null):
		attInit()
		life = lv * 3
		self.cha = cha
		self.val = cha.att.maxHp*0.005 + 100
	func _upS():
		if cha:
			cha.healCha(masCha,val)
			return
		masCha.healCha(masCha,val)